#include<stdio.h>
int i;
struct Student{
		int num;
		char name[20];
		int score;
	}students[10];	
search()
{
	int a;
	printf("search");
	scanf("%d",&a);
	i=0;
	while(a!=students[i].num)
	{
		i++;
	};
	printf("score:%d",students[i].score);	
}
main()
{
	for(i=0;i<10;i++)
	{
		printf("input %d:",i+1);
		scanf("%d%s%d",&students[i].num,&students[i].name,&students[i].score);
		printf("\n");
	}
	for(i=0;i<10;i++)
	{
		printf("%d %s %d",students[i].num,students[i].name,students[i].score);
		printf("\n");
	}
	int j=0;
	float k=0; 
	while(getchar()!='\n');
	search();
	for(i=0;i<10;i++)
	{
		k=k+students[i].score;
	}
	k=k/10;
	printf("average:%d",k);
	k=0;
	for(i=0,j=students[0].score;i<10;i++)
	{
		j=students[i].score;
		if(k<=j)
		{
			k=j;
		}
	}
	printf("highest:%d",k);
}
